﻿CREATE PROCEDURE [acms].[UserSecurity_CountOnline]
	@Minutes int
AS
	SELECT Count(Id)
	FROM UserSecurity_View
	Where DateDiff(mi, LastActivity, getdate()) < @minutes
RETURN 0;